package cn.iocoder.yudao.module.product.api.cylinder;

import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.product.api.cylinder.vo.CylinderTypeDTO;
import cn.iocoder.yudao.module.product.dal.mysql.cylindertype.CylinderTypeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CylinderTypeMapperApiImpl implements CylinderTypeMapperApi{
    @Resource
    private CylinderTypeMapper cylinderTypeMapper;

    @Override
    public CylinderTypeDTO getCylinderTypeById(Long id) {
        return BeanUtils.toBean(cylinderTypeMapper.selectById(id), CylinderTypeDTO.class);
    }
}
